package com.example.educationalsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.educationalsystem.entity.SelectCourse;
import com.example.educationalsystem.entity.Vo.ScoreVo;
import com.example.educationalsystem.entity.Vo.SelectCourseVo;
import com.example.educationalsystem.mapper.ISelectCourseMapper;
import com.example.educationalsystem.service.ISelectCourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zpc
 * @since 2022-12-20
 */
@Service
public class SelectCourseServiceImpl extends ServiceImpl<ISelectCourseMapper, SelectCourse> implements ISelectCourseService {
    @Autowired
    private ISelectCourseMapper iSelectCourseMapper;

    @Override
    public List<SelectCourseVo> getAllSelectCourse(){
        return iSelectCourseMapper.getAllSelectCourse();
    }
    @Override
    public Page<SelectCourseVo> getSelectCoursePage(Page<SelectCourseVo> page , Wrapper wrapper)
    {
        return iSelectCourseMapper.getSelectCoursePage(page,wrapper);
    }
}
